import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqSGangFightsTeamMemberHelper } from "./SeqSGangFightsTeamMemberHelper";
type int = number;
//class SGangFightsTeamInfo
    
    export  class SGangFightsTeamInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SGangFightsTeamInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.teamId);
            arg1.writeString(this.name);
            arg1.writeInt(this.faceId);
            arg1.writeInt(this.mark);
            arg1.writeInt(this.winNum);
            arg1.writeInt(this.loseNum);
            arg1.writeInt(this.rank);
            SeqSGangFightsTeamMemberHelper.write(arg1, this.members);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.teamId = arg1.readInt();
            this.name = arg1.readString();
            this.faceId = arg1.readInt();
            this.mark = arg1.readInt();
            this.winNum = arg1.readInt();
            this.loseNum = arg1.readInt();
            this.rank = arg1.readInt();
            this.members = SeqSGangFightsTeamMemberHelper.read(arg1);
            return;
        }

        public /* const */_type: int=503;

        public /* var */teamId: int;

        public /* var */name: string;

        public /* var */faceId: int;

        public /* var */mark: int;

        public /* var */winNum: int;

        public /* var */loseNum: int;

        public /* var */rank: int;

        public /* var */members: Array<any>;

        public static /* var */_regist: SGangFightsTeamInfo;
    }

            SGangFightsTeamInfo._regist = new SGangFightsTeamInfo(true);
        